<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Socket</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.3.0/socket.io.js"
        integrity="sha256-bQmrZe4yPnQrLTY+1gYylfNMBuGfnT/HKsCGX+9Xuqo=" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-url/2.5.3/url.min.js"
        integrity="sha256-rrzdFP3i63GwhJ0VEvZeViq6ABzO3Gavqp5KPFQXn8k=" crossorigin="anonymous"></script>
</head>

<body>
    <h1>Socket</h1>
    <script>
        var socket = io({
            query: {
                biz: url('?biz')
            }
        });
        socket.on('message', function (msg) {
            console.log(msg);
        })
    </script>
</body>

</html>